import storage from './session'
const key = 'tab'

export const setTab = tab => storage.set(key, tab)
export const getTab = () => storage.get(key)
export const delTab = () => storage.del(key)
export const hasTab = () => storage.get(key) === '' ? false : true